package com.turing.system.mapper;

import com.turing.system.entity.KeeperWithdrawals;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
* @author admin
* @description 针对表【keeper_withdrawals(店主或管理员流水)】的数据库操作Mapper
* @createDate 2023-05-08 16:40:08
* @Entity com.turing.system.entity.KeeperWithdrawals
*/
public interface KeeperWithdrawalsMapper extends BaseMapper<KeeperWithdrawals> {



    Double SumOne(@Param("kwType") Integer kwType);


    Double Sum(@Param("kwInfo") String kwInfo, @Param("sourceId") String sourceId);

    Double SumValue(@Param("kwInfo") String kwInfo, @Param("targetId") String targetId);


    List<KeeperWithdrawals> keeperList(@Param("merchantId") String merchantId);

    void updateUserId(@Param("userId") String valueOf);




    List<KeeperWithdrawals> selectList(@Param("s") String s);

    List<String> selectMerchantId(@Param("merchantName") String merchantName);

    String getName(@Param("s") String s);

    List<KeeperWithdrawals> selectKeeperWithdrawals(@Param("merchantName") String merchantName, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    Double getSum(@Param("kwInfo") String kwInfo, @Param("merchantId") String merchantId);




    List<LinkedHashMap<String, Object>> selectListEntity();

    List<LinkedHashMap<String, Object>> selectListMap(@Param("merchantName") String merchantName);
}




